package com.koron.device.bean.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.bean.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * (Maintain)实体类
 *
 * @author zhouj
 * @since 2021-09-13 17:42:10
 */
@Data
@ApiModel("正常维护工单主表")
public class MaintainPo extends BaseBean {

    @ApiModelProperty(value = "维护工单编码")
    private String code;

    @ApiModelProperty(value = "维护工单标题")
    private String title;

    @ApiModelProperty(value = "设备管理单位ID")
    private String deptManage;

    @ApiModelProperty(value = "设备管理单位名称")
    private String deptManageName;

    @ApiModelProperty(value = "专业")
    private String major;

    @ApiModelProperty(value = "工单性质")
    private Integer nature;

    @ApiModelProperty(value = "工单来源")
    private String source;

    @ApiModelProperty(value = "工单来源的ID")
    private String sourceId;

    @ApiModelProperty(value = "工作地点ID")
    private String location;

    @ApiModelProperty(value = "工作地点名称")
    private String locationName;

    @ApiModelProperty(value = "预计开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "预计结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty(value = "工作内容")
    private String context;

    @ApiModelProperty(value = "备注")
    private String marks;

    @ApiModelProperty(value = "是否需要作业表单")
    private Integer needStatus;

    @ApiModelProperty(value = "存在的问题")
    private String problem;

    @ApiModelProperty(value = "改进建议")
    private String opinion;

    @ApiModelProperty(value = "工单状态")
    private String status;

    @ApiModelProperty(value = "实际结束时间")
    private Date factEndTime;

    @ApiModelProperty(value = "计划id")
    private String planId;

    @ApiModelProperty(value = "计划编号")
    private String planCode;

}